<template>
	<calendar
		showPrepNext
		:startYearMonth="startYearMonth"
		:markDate="markDate"
		:checkedDate="checkedDate"
		@clickDate="clickDate"
		@changeMonth="changeMonth"
	/>
</template>

<script setup lang="ts">
import calendar from '@/components/calendar'
import moment from 'moment'

const markDate = ['2021/1/1', '2021-01-12', '2021-1-18', '2023-08-20']
const startYearMonth = moment(new Date()).format('YYYY-MM')
const checkedDate = moment(new Date()).format('YYYY-MM-DD')
const clickDate = (date: any) => {
	console.log(date)
}
const changeMonth = (date: any) => {
	console.log(date)
}

</script>
<style scoped>
.left-tree > ::before {
	height: 0px;
}
</style>
